import request from "@/utils/request"

// a 获取品牌
// * @param {Integer} limit -品牌个数
// * @returns Promise

export const findBrand = (limit = 6) => {
    return request('/home/brand', 'get', { limit })
}

// a 获取轮播图
// * @returns Promise

export const findBanner = () => {
    return request('/home/banner', 'get',)
}

// a 获取新鲜好物
// * @returns Promise

export const findNew = () => {
    return request('/home/new', 'get',)
}

// a 获取人气推荐
// * @returns Promise
export const findHot = () => {
    return request('/home/hot', 'get',)
}

// a 获取商品
// * @returns Promise
export const findGoods = () => {
    return request('/home/goods', 'get',)
}

// a 获取最新专题
// * @returns Promise
export const findSpecial = (limit) => {
    return request('/home/special', 'get', { limit })
}
